<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>工程师</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript" src="plug-in/ckeditor_new/ckeditor.js"></script>
<script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
$(function(){
	$("select option:selected").each(function(){
		var text = $(this).val() == "" ? "无" : $(this).text();
		$(this).parent().after('<input type="text" style="width: 150px" class="inputxt" value="'+text+'" />').remove();
	});
	$("input").attr({"readonly":"readonly","disabled":"disabled"});
});
</script>
</head>
<body>
	<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="zyEngineerController.do?doUpdate" tiptype="3">
		<table cellpadding="0" cellspacing="1" class="formtable">
			<tr>
				<td align="right" style="width: 200px;">
					<label class="Validform_label"> 系统用户:</label>
				</td>
				<td class="value" style="width: 500px;">
					<input name="realName" class="inputxt" type="text" id="realName" value='${zyEngineerPage.tsBaseUser.realName}' readonly="readonly"  />
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 工程师编号 : </label>
				</td>
				<td class="value">
					<input id=engineerNo name="engineerNo" type="text" style="width: 150px" class="inputxt" value='${zyEngineerPage.engineerNo}'> 
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 姓名: </label>
				</td>
				<td class="value">
					<input id="name" name="name" type="text" style="width: 150px" class="inputxt" value='${zyEngineerPage.name}'>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 性别: </label>
				</td>
				<td class="value">
					<t:dictSelect field="gender" type="select" typeGroupCode="<%=StaticValue.DIC_SEX %>" defaultVal="${zyEngineerPage.gender}" />
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 手机号:
				</label></td>
				<td class="value">
					<input id="cellphone" name="cellphone" type="text" style="width: 150px" class="inputxt" value='${zyEngineerPage.cellphone}'>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 邮箱: </label>
				</td>
				<td class="value">
					<input id="email" name="email" type="text" style="width: 150px" class="inputxt" value='${zyEngineerPage.email}'>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 所属机构:
				</label></td>
				<td class="value">
					<input name="departname" class="inputxt" type="text" id="departname" value='${zyEngineerPage.belongOrg.departname}' readonly="readonly" />
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 状态: </label>
				</td>
				<td class="value">
					<t:dictSelect field="state" type="select" typeGroupCode="<%=StaticValue.DIC_ENGINEER_STATE %>" defaultVal="${zyEngineerPage.state}" />
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 认证证书:
				</label></td>
				<td class="value">
					<t:dictSelect field="authentication" type="select" typeGroupCode="<%=StaticValue.DIC_CERTIFICATE %>" defaultVal="${zyEngineerPage.authentication}" />
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 证书编号:
				</label></td>
				<td class="value">
					<input id="certificateNum" name="certificateNum" type="text" value='${zyEngineerPage.certificateNum}' style="width: 150px" class="inputxt" />
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label">上级工程师或人员: </label></td>
				<td class="value">
					<input name="enginName" class="inputxt" type="text" id="enginName" readonly="readonly" value='${zyEngineerPage.parentId.name}' />
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 身份证:</label>
				</td>
				<td class="value">
					<input id="idNum" name="idNum" type="text" style="width: 150px" class="inputxt" value='${zyEngineerPage.idNum}'>
				</td>
			</tr>
		</table>
	</t:formvalid>
</body>
<script src="webpage/com/zybk/zy_engineer/zyEngineer.js"></script>